<div >
    <form class="form-horizontal" role="form" novalidate name="stForm" ng-switch on="translate.timeTypeCode.timeTypeCode">
        <div class="form-ctrl md-whiteframe-z1">
            <div class="form-search" style="height:225px;" ng-class="{true: 'shou'}[shoumun==0]" >
                <div>
                    <label style="width:70px">归属省</label>
                    <md-select multiple ng-model="number.province" >
                        <md-select-label>
                            {{number.province.length ? _getNames(number.province,'provinceName',provinces) :'全部'}}
                        </md-select-label>
                        <md-option ng-value="" ng-click="_checkAll(number,'province')">全部</md-option>
                        <md-option ng-value="province" ng-repeat="province in provinces">{{province.provinceName}}</md-option>
                    </md-select>
                </div>
                <div>
                    <md-input-container flex>
                        <label >开始时间</label>
                        <input  type="date"  time-validate='day' end-time='date.endTime' ng-model="date.startTime" name='startTime'  required>
                         <div ng-messages="stForm.startTime.$error">
                            <div ng-message="date">请正确输入时间</div>
                            <div ng-message="time-error">开始时间不应大于结束时间</div>
                            <div ng-message="too-great">结束时间不应大于当前时间</div>
                        </div>
                    </md-input-container >
                </div>
                <div>
                    <md-input-container flex>
                        <label >结束时间</label>
                        <input  type="date" time-validate="day" start-time="date.startTime" ng-model="date.endTime" name='endTime'   required>
                         <div ng-messages="stForm.endTime.$error">
                            <div ng-message="date">请正确输入时间</div>
                            <div ng-message="time-error">开始时间不应大于结束时间</div>
                            <div ng-message="too-great">结束时间不应大于当前时间</div>
                        </div>
                    </md-input-container >
                </div>
           </div>
           <i class="glyphicon glyphicon-chevron-up shrinkage" ng-click="shoumun=0"></i>
            <md-button ng-click="queryAllChannel()" ng-click="shoumun==1?shoumun=0:shoumun=1" class="md-fab md-primary md-hue-1" ng-disabled ='stForm.$invalid' aria-label="Profile">
                <i class="glyphicon glyphicon-arrow-down" style="margin-top:28px;" ng-show="shoumun==0"></i>
                <i class="glyphicon glyphicon-search" ng-show="shoumun==1"></i>
            </md-button>
        </div>
    </form>
  <div class="menus table-info">
    <md-button aria-label="列表" class="md-raised ico-btn"   ng-click="lengthSwitch=false">
      <img src="images/tables.png"  >
    </md-button>
    <md-button aria-label="图表" class="md-raised ico-btn"   ng-click="lengthSwitch=true">
      <img src="images/charts.png"  >
    </md-button>
  </div>
    <div style="text-align: center" >
       <h3 style="margin-top:0;font-size:large;font-weight:bold;color:black" ng-show='!lengthSwitch'>
          号码分布  {{date.startTime | date : 'yyyy-MM-dd'}} 至  {{date.endTime | date : 'yyyy-MM-dd'}}
      </h3>
       <h3 style="margin-top:0;font-size:large;font-weight:bold;color:black" ng-show='lengthSwitch'>
        号码分布占有率 {{date.startTime | date : 'yyyy-MM-dd'}} 至  {{date.endTime | date : 'yyyy-MM-dd'}}
      </h3>
      </div>
    <div class="table-info"   ng-show='!lengthSwitch'>
        <div>
            <div class="table-detail">
                <div class="t_r">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th width="10%">号码归属地</th>
                            <th width="10%" >号码总数</th>
                            <th width="10%" >预约号码</th>
                            <th width="10%" >在用号码</th>
                            <th width="10%" >预消户卡号码</th>
                            <th width='10%'>销户号码</th>
                            <th width='10%'>注销号码</th>
                            <th  width='10%'>无效号码</th>
                            <th width='10%'>预占号码</th>
                            <th  width='10%'>可用号码</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="item in items">
                            <td width="10%"  >{{item.provinceName}}</td>
                            <td width="10%"  >{{item.reservationNumber+item.reuseNumber+item.prepareLogoutUserNumber+item.logoutUserNumber+ item.logoutNumber+item.nullityNumber+
                            item.priorityCardNumber+item.usableNumber  }}</td>
                            <td width="10%"  >{{item.reservationNumber}}</td>
                            <td width="10%" >{{item.reuseNumber   }}</td>
                            <td width="10%" >{{item.prepareLogoutUserNumber  }}</td>
                            <td width="10%" >{{item.logoutUserNumber}}</td>
                            <td width="10%" >{{item.logoutNumber}}</td>
                            <td width="10%" >{{item.nullityNumber}}</td>
                            <td width="10%" >{{item.priorityCardNumber}}</td>
                            <td width="10%" >{{item.usableNumber}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div id="pboss" style='height:550px;padding-bottom:20px'></div>
    </div>
        <div  ng-show='lengthSwitch===true'  id="main" style="height:400px"></div>
</div>
